function ZoomHover(id, width, height, idBody,xOffset, yOffset) {

    if (typeof width == "null") width = 225;
    if (typeof height == "null") height = 345;
    if (typeof xOffset == "undefined") xOffset = 50;
    if (typeof yOffset == "undefined") yOffset = 30;
   
    $(id).hover(function (e) {
      
        var position = $(this).offset();
        topX = position.top - xOffset;
        if (topX - $(window).scrollTop() < 0)
            topX = $(window).scrollTop();
        if (topX - $(window).scrollTop() + height > $(window).height())
            topX = $(window).height() + $(window).scrollTop() - height - 10;
        topY = e.pageX + yOffset;
        if (topY + width > $(window).width()) {
            
            topY = e.pageX - width - yOffset;
            
        }
        this.t = this.title;
        this.title = "";
        image = $(this).attr('src');
        image = image.replace(/thumb/, "");
        var c = (this.t != "") ? "<br/>" + this.t : "";
        $("body").append("<p id='screenshot'><img src='" + image + "' width='" + width + "px' height='" + height + "px' />" + c + "</p>");
        $("#screenshot")
            .css("top", topX + "px")
            .css("left", topY + "px")
            .fadeIn("fast");
    },
   function () {
       $("#screenshot").remove();
   }
   );
    $(id).mousemove(function (e) {
        var position = $("#screenshot").offset();
        topX = position.top;
        if (topX - $(window).scrollTop() < 0) {
            topX = $(window).scrollTop();
            $("#screenshot")
				.css("top", topX + "px");
        }
        else if (topX - $(window).scrollTop() + height > $(window).height()) {
            topX = $(window).height() + $(window).scrollTop() - height - 10;
            $("#screenshot")
				.css("top", topX + "px");
        }
        topY = e.pageX + yOffset;
        if (topY + width > $(window).width()) {
            topY = e.pageX - width - yOffset;
        }
        $("#screenshot")
            .css("left", topY + "px");
    });
}


